package com.crm.system.service.userForumManager;

import com.crm.common.model.DhPageInfo;
import com.crm.model.entity.userForumManager.UserForum;
import com.crm.model.qo.userForumManager.UserForumQO;
import com.crm.model.vo.userForumManager.UserForumInfoVO;
import com.crm.model.vo.userForumManager.UserForumVO;

/**
 * @Author:chaifuyou
 * @Date: 2021/5/24 9:35
 */
public interface UserForumService {

    /**
     * 分页查询论坛
     * @param pageIndex
     * @param pageSize
     * @param sortName
     * @param sortOrder
     * @param userForumQO
     * @return
     */
    DhPageInfo<UserForumVO> selectUserForumListPage(Integer pageIndex, Integer pageSize, String sortName, String sortOrder, UserForumQO userForumQO);

    /**
     * 发布论坛
     * @param userForum
     */
    UserForumVO addUserForum(UserForum userForum);

    /**
     * 当前登录用户的论坛信息
     * @return
     */
    UserForumInfoVO selectLoginUserForumInfo(String accountId);

    /**
     * 删除论坛
     * @param userForumId
     * @return
     */
    boolean delUserForum(String userForumId);
}
